Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Other: Update naming of UI components & commands. #183

Merged
merged 7 commits into from
Mar 11, 2018

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Mar 8, 2018

Suggested merge commit message (convention)

Other: Update naming of UI components & commands.

BREAKING CHANGE: Renamed imageUpload command to uploadImage.
BREAKING CHANGE: The "imageStyleFull", "imageStyleSide", "imageStyleAlignLeft", "imageStyleAlignRight" and "imageStyleAlignCenter" commands are no longer available. Replaced by "imageStyle" command that accepts name of configured image style as a value.
BREAKING CHANGE: The "imageStyleFull", "imageStyleSide", "imageStyleAlignLeft", "imageStyleAlignRight" and "imageStyleAlignCenter" UI components are no longer available. Replaced by "imageStyle:full", "imageStyle:side", "imageStyle:alignLeft", "imageStyle:alignRight" and "imageStyle:alignCenter".
BREAKING CHANGE: The ImageStyleCommand#value is no longer boolean only. Now it can have a name of image style of current image element.
BREAKING CHANGE: The ImageStyleCommand constructor's second parameter is now an array of supported model attribute values.


Additional information

@jodator jodator changed the title Other: Update naming of UI components. Other: Update naming of UI components & commands. Mar 8, 2018
@coveralls
Copy link

coveralls commented Mar 8, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 679c5fa on t/ckeditor5-alignment/16 into 8b60192 on master.

@@ -12,16 +12,16 @@ ClassicEditor
image: {
styles: [
// This option is equal to a situation where no style is applied.
'imageStyleFull',
'imageStyle:full',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make sense to repeat the imageStyle: prefix in image.styles config. I'll remove it.

@@ -42,7 +42,7 @@ export default class ImageStyle extends Plugin {
* The default value is:
*
* const imageConfig = {
* styles: [ 'imageStyleFull', 'imageStyleSide' ]
* styles: [ 'imageStyle:full', 'imageStyle:side' ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is odd. Below the name is set to full and here you use imageStyle:full. So I think that you wanted to change this but forgot at some point :D

@Reinmar
Copy link
Member

Reinmar commented Mar 9, 2018

Also, the bit about the commands is wrong:

image

@Reinmar Reinmar merged commit 2e7fbee into master Mar 11, 2018
@Reinmar Reinmar deleted the t/ckeditor5-alignment/16 branch March 11, 2018 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants